import Query from "@/app/admin/property/fee/query/page";
import { baseUrl2 } from "./login2";
import customFetch from "@/utils/request";

// 费用查询
export const getFeeList = (kw) => {
  return customFetch(`${baseUrl2}/fee/allfee?kw=${kw}`, {
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${localStorage.getItem('adminToken2')}`
    }
  })
}

// 费用类型查询
export const getFeeTypeApi = () => {
  return customFetch(`${baseUrl2}/fee/type`, {
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${localStorage.getItem('adminToken2')}`
    }
  })
}

// 缴费查询
export const getPayListApi = (status = '', start = 1, count = 10, startDate = '', endDate = '') =>
  customFetch(`${baseUrl2}/fee/fee/query?status=${status}&start=${start}&count=${count}&startDate=${startDate}&endDate=${endDate}`, {
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${localStorage.getItem('adminToken2')}`
    }
  })